from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from info import crreate_app
ret = crreate_app('dev')
app = ret[0]
db = ret[1]
manager = Manager(app)
Migrate(app, db)
manager.add_command('db', MigrateCommand)


from flask import session
@app.route('/')
def index():
    session["name"] = "itheima"
    return 'index'

if __name__ == '__main__':
    manager.run()